﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Search.ascx.cs" Inherits="Lenovo.CFI.Web.VP.Search" %>
<tbwc:StyleSheetControl ID="SscList" runat="server" CssPath="list.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscAc" runat="server" CssPath="VP/autocomplete.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscThis" runat="server" CssPath="VP/search/search.css"></tbwc:StyleSheetControl>

<ajaxToolkit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" CombineScripts="false" ID="ScriptManager1" >
    <Services>
        <asp:ServiceReference  Path="~/WS/AjaxUser.asmx" />
    </Services>
    <Scripts>
        <asp:ScriptReference Path="~/js/jquery-1.4.2.js" />
        <asp:ScriptReference Path="~/js/jquery.autocomplete.js" />
    </Scripts>
</ajaxToolkit:ToolkitScriptManager>

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <tbwc:Fieldset ID="FsSearch" runat="server" DesignWidth="1206px" CssClass="fsseach" GroupingText="Search Condition" EnableToogle="true">
            <div class="line" style="float:right;padding-right:2em"><asp:Label ID="LblKeywords" runat="server" AssociatedControlID="LbKeywords" Text="Keywords :" CssClass="title"></asp:Label><span style="display:block"><asp:ListBox
                ID="LbKeywords" runat="server" Width="10em" Rows="5" SelectionMode="Multiple"></asp:ListBox><br/><asp:TextBox 
                ID="TxtKeywords" runat="server" Width="8.5em" TextMode="MultiLine" Rows="2" ></asp:TextBox></span></div>
            <div>
            <div class="line"><asp:Label ID="LblTopic" runat="server" AssociatedControlID="DdlTopic" Text="Topic :" CssClass="title"></asp:Label><asp:DropDownList
                ID="DdlTopic" runat="server" Width="10em"></asp:DropDownList><asp:Label 
                ID="LblType" runat="server" AssociatedControlID="DdlType" Text="Type :" CssClass="titlesecond"></asp:Label><asp:DropDownList
                ID="DdlType" runat="server" Width="10em"></asp:DropDownList><asp:Label 
                ID="LblName" runat="server" AssociatedControlID="TxtName" Text="Name :" CssClass="titlesecond"></asp:Label><asp:TextBox 
                ID="TxtName" runat="server" Width="9.5em" ></asp:TextBox><asp:Label 
                ID="LblStatus" runat="server" AssociatedControlID="DdlStatus" Text="P-Status :" CssClass="titlesecond"></asp:Label><asp:DropDownList
                ID="DdlStatus" runat="server" Width="10em">
                    <asp:ListItem Text="Select..." Value="-1"></asp:ListItem>
                    <asp:ListItem Text="Suggestion" Value="31"></asp:ListItem>
                    <asp:ListItem Text="Execution" Value="41"></asp:ListItem>
                    <asp:ListItem Text="Closed" Value="51"></asp:ListItem>
                </asp:DropDownList></div>
             
            <div class="line"><asp:Label ID="LblOwner" runat="server" AssociatedControlID="OuacOwner" Text="Author :" CssClass="title"></asp:Label><span style="display:inline-block"><tbwc:OneUserAutoComplete 
                ID="OuacOwner" runat="server" Width="9.5em" AcServiceUrl="WS/AjaxUserAc.aspx" 
                    CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodes"></tbwc:OneUserAutoComplete></span><asp:Label 
                ID="LblManager" runat="server" AssociatedControlID="OuacManager" Text="Manager :" CssClass="titlesecond"></asp:Label><span style="display:inline-block"><tbwc:OneUserAutoComplete 
                ID="OuacManager" runat="server" Width="9.5em" AcServiceUrl="WS/AjaxUserAc.aspx" 
                    CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodes"></tbwc:OneUserAutoComplete></span><asp:Label 
                ID="LblVP" runat="server" AssociatedControlID="OuacVP" Text="VP :" CssClass="titlesecond"></asp:Label><span style="display:inline-block"><tbwc:OneUserAutoComplete 
                ID="OuacVP" runat="server" Width="9.5em" AcServiceUrl="WS/AjaxUserAc.aspx" 
                    CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodes"></tbwc:OneUserAutoComplete></span><asp:Label 
                ID="LblTeamOwner" runat="server" AssociatedControlID="DdlTeamOwner" Text="Team :" CssClass="titlesecond"></asp:Label><asp:DropDownList
                ID="DdlTeamOwner" runat="server" Width="10em"></asp:DropDownList></div>

            <div class="line"><asp:Label ID="LblNextAction" runat="server" AssociatedControlID="DdlNextAction" Text="Next Action :" CssClass="title"></asp:Label><asp:DropDownList
                ID="DdlNextAction" runat="server" Width="10em"></asp:DropDownList><asp:Label ID="LblNextActionStatus" runat="server" AssociatedControlID="DdlNextActionStatus" Text="Action Status :" CssClass="titlesecond"></asp:Label><asp:DropDownList
                ID="DdlNextActionStatus" runat="server" Width="10em">
                    <asp:ListItem Text="Select..." Value="-1"></asp:ListItem>
                    <asp:ListItem Text="Preparing" Value="1"></asp:ListItem>
                    <asp:ListItem Text="OnGoing" Value="2"></asp:ListItem>
                    <asp:ListItem Text="Finished" Value="3"></asp:ListItem>
                    <asp:ListItem Text="Canceled" Value="4"></asp:ListItem>
                </asp:DropDownList><asp:Label ID="LblIP" runat="server" AssociatedControlID="DdlIP" Text="IP :" CssClass="titlesecond"></asp:Label><asp:DropDownList
                ID="DdlIP" runat="server" Width="10em">
                    <asp:ListItem Text="Select..." Value="-1"></asp:ListItem>
                    <asp:ListItem Text="Y" Value="1"></asp:ListItem>
                    <asp:ListItem Text="N" Value="0"></asp:ListItem>
                </asp:DropDownList><asp:Label ID="LblNextIPStatus" runat="server" AssociatedControlID="DdlNextIPStatus" Text="IP Status :" CssClass="titlesecond"></asp:Label><asp:DropDownList
                ID="DdlNextIPStatus" runat="server" Width="10em">
                    <asp:ListItem Text="Select..." Value="-1"></asp:ListItem>
                    <asp:ListItem Text="Preparing" Value="1"></asp:ListItem>
                    <asp:ListItem Text="OnGoing" Value="2"></asp:ListItem>
                    <asp:ListItem Text="Finished" Value="3"></asp:ListItem>
                    <asp:ListItem Text="Canceled" Value="4"></asp:ListItem>
                </asp:DropDownList></div>
            <div class="line"><asp:Label ID="LblTopicDateF" runat="server" AssociatedControlID="DpTopicDateF" Text="Review Date :" CssClass="title"></asp:Label><tbwc:DatePicker 
                ID="DpTopicDateF" runat="server" Width="8.5em" /> to <tbwc:DatePicker 
                ID="DpTopicDateT" runat="server" Width="8.5em" /><asp:Label 
                ID="LblSubmitDate" runat="server" AssociatedControlID="DpSubmitDateF" Text="Submit Date :" CssClass="titlesecond" style="width:18.5em;"></asp:Label><tbwc:DatePicker 
                ID="DpSubmitDateF" runat="server" Width="8.5em" /> to <tbwc:DatePicker 
                ID="DpSubmitDateT" runat="server" Width="8.5em" /></div>
            </div>

            <div class="line"><asp:Label ID="LblRelatedType" runat="server" AssociatedControlID="CbRelatedType" Text="Related Types :" CssClass="title"></asp:Label><span style="display:inline-block;width:800px"><asp:CheckBoxList
                ID="CbRelatedType" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"></asp:CheckBoxList></span></div>

        </tbwc:Fieldset>


        <div class="operation"><asp:Button ID="BtnSearch" runat="server" ValidationGroup="Search" 
                SkinID="EditPrimary" Text="Search" onclick="BtnSearch_Click" /><asp:Button ID="BtnExport" runat="server" Text="Export"
                SkinID="EditPrimary" onclick="BtnExport_Click" /></div>

        <div class="dataListArea searchresult">
            <tbwc:GridViewEx ID="GvList" runat="server" SkinID="List" DataKeyNames="ID" PageIndex="20"
                AllowPaging="true" OnRowDataBound="GvList_RowDataBound" 
                onpageindexchanging="GvList_PageIndexChanging">
            <Columns>
                <asp:TemplateField HeaderText="No.">
                    <itemstyle cssclass="listNo" />
                    <itemtemplate><asp:Literal ID="LtrNo" runat="server"></asp:Literal></itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Idea Name">
                    <itemtemplate><asp:Literal ID="LtrTitle" runat="server"></asp:Literal></itemtemplate>
                    <itemstyle cssclass="title" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Author">
                    <itemtemplate><asp:Literal ID="LtrOwner" runat="server"></asp:Literal></itemtemplate>
                    <itemstyle cssclass="owner" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Type">
                    <itemtemplate><asp:Literal ID="LtrType" runat="server"></asp:Literal></itemtemplate>
                    <itemstyle cssclass="type" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Next Action">
                    <itemtemplate><asp:Literal ID="LtrNextAction" runat="server"></asp:Literal></itemtemplate>
                    <itemstyle cssclass="action" />
                </asp:TemplateField>
            </Columns>
        </tbwc:GridViewEx>
    </div>
    </ContentTemplate>
</asp:UpdatePanel>

